package com.qidian.mes.qc.mapper;

import com.qidian.mes.pojo.QcDefect;

import java.util.List;

public interface DefectMapper {
    /**
     * 根据id删除数据
     * @param defectId
     * @return
     */
    Integer deleteByDefectId(Long defectId);

    /**
     * 根据id查找数据
     * @param defectId
     * @return
     */
    QcDefect getById(Long defectId);

    /**
     * 分页查询
     *
     * @param qcDefect
     * @return
     */
    List<QcDefect> list(QcDefect qcDefect);

    /**
     * 保存数据
     *
     * @param qcDefect
     * @return
     */
    Integer save(QcDefect qcDefect);

    /**
     * 根据ID修改数据
     *
     * @param qcDefect
     * @return
     */
    Integer update(QcDefect qcDefect);
}
